package zsrt.com.client;

import java.util.Scanner;
import zsrt.com.menu.AdminMenu;
import zsrt.com.menu.MenuDesign;
import zsrt.com.menu.UserMenu;

public class ClientMenu {
	
	/**
	 * 初始化扫描仪
	 */
	private static Scanner scanner = new Scanner(System.in);

	/**
	 * 初始化菜单设计
	 */
	private static MenuDesign menu = new MenuDesign();

	public static void main(String[] args) {
		while(true){
			menu.login();
			int select = scanner.nextInt();
			if(select == 1){
				AdminMenu.adminMenu(scanner, menu);
			}else if(select == 2){
				UserMenu.userMenu(scanner, menu);
			}else if(select == 3){
				System.err.println("退出成功...");
				break;
			}else{
				System.err.println("输入无效...");
			}
		}
	}
}
